<%@ page import="com.ydgk.dao.AdminDao" %>
<%@ page import="com.ydgk.bean.Admin" %><%--
  Created by IntelliJ IDEA.
  User: zzz
  Date: 2019/10/5
  Time: 20:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>admins</title>
    <link rel="stylesheet" type="text/css" href="css/admins.css">
</head>
<body>
<%
    AdminDao adminDao = new AdminDao();
   Admin admin = adminDao.findByName(request.getParameter("aname"));
%>
<div>
<form action="AdminServlet.action" method="get">
    <input type="hidden" name="aid" value="<%= admin.getAid()%>">
    <p>管理员名称</p><input type="text" name="aname" value="<%= admin.getAname()%>">
    <p>登录密码</p><input type="text" name="apass" value="<%= admin.getApass()%>">
    <br><br>
    <input id="button" type="submit"  value="保存">
</form>
</div>
</body>

</html>
